<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>检查子进程当前是否已经停止</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.pcntl-wifstopped" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">pcntl_wifstopped</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.1.0, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">pcntl_wifstopped</span> &mdash; <span class="dc-title">检查子进程当前是否已经停止</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.pcntl-wifstopped-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>pcntl_wifstopped</strong></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$status</code></span>
   ) : <span class="type">bool</span></div>

  <p class="para rdfs-comment">
  仅查子进程当前是否停止; 此函数只有作用于使用了<em>WUNTRACED</em>作为
  option的<span class="function"><a href="pcntl_waitpid.html" class="function">pcntl_waitpid()</a></span>函数调用产生的status时才有效。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.pcntl-wifstopped-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<code class="parameter">status</code></dt>

     <dd>

      <p class="para">参数
<code class="parameter">status</code> 是提供给成功调用 <span class="function"><a href="pcntl_waitpid.html" class="function">pcntl_waitpid()</a></span>
时的状态参数。</p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.pcntl-wifstopped-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   如果子进程当前是停止的返回 <strong><code>TRUE</code></strong> ，其他情况返回 <strong><code>FALSE</code></strong> 。
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.pcntl-wifstopped-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="pcntl_waitpid.html" class="function" rel="rdfs-seeAlso">pcntl_waitpid()</a> - 等待或返回fork的子进程状态</span></li>
   </ul>
  </p>
 </div>


</div></div></div></body></html>